package com.zpark.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * @author xiaoyu
 * @version 1.0 2022/10/8
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/login")
    public String Login(HttpSession session) {
        session.setAttribute("user", "code:200");
        return "登录成功";
    }
}
